package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.UserOpenIdEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface UserOpenIdDao {
	
	void addOpenId(UserOpenIdEntity openId);
	
	void deleteOpenId(@Param("openId") String openId,@Param("appId") String appId);
	
	void deleteOpenIdByUid(@Param("uid") String uid);
	
	void updateOpenId(UserOpenIdEntity openId);
	
	List<UserOpenIdEntity> queryOpenIdsByUid(@Param("uid") String uid);
	
	UserOpenIdEntity queryOpenId(@Param("openId") String openId,@Param("appId") String appId);
}
